KM.Material = function( name, emissive, ambient, diffuse, specular, alpha )
{
    // Description
    this._id = KM.Material.materials3DIdCount++;
    this._name = name;
        
    // Emissive
    this._emissive = emissive;
    
    // Ambient
    this._ambient = ambient;
    
    // Diffuse
    this._diffuse = diffuse;
    
    // Specular
    this._specular = specular;
    
    // Alpha
    this._alpha = alpha;
};

KM.Material.materials3DIdCount = 0;

KM.Material.prototype = {
    constructor: KM.Material,
    
    toString: function()
    {
        return "Material_" + this._id + "\n"
            + "\t\t name => " + this._name + "\n"
            + "\t\t ambient" + this._ambient.toString() + "\n"
            + "\t\t diffuse" + this._diffuse.toString() + "\n"
            + "\t\t emssive" + this._emissive.toString() + "\n"
            + "\t\t alpha: " + this._alpha;
    }
};
